package edu.bit.water.dao;

import edu.bit.water.entity.WasteWaterTable1;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;
import java.util.Map;

@Mapper
@Repository
public interface EntityEffluentLetDao {

    // 新增
    int insert(Map<String, String> map);

    // 查询
    List<Map<String, Double>> selectAll(@Param("id") int id);

    // 删除
    int delete(@PathVariable("id") int id);

    int deleteByWasteWaterId(@Param("id") int id);

    int update(Map<String, Object> map);

    Integer getMaxId();

}
